package com.cx.bank.dao;

import com.cx.bank.model.MoneyBean;
import com.cx.bank.model.UserBean;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author jxau_scf
 * @date 2021/7/14 - 9:16
 */
public interface BankDaoInterface {
    public boolean saveMoney(String userName, MoneyBean moneyBean) throws IOException;
    public boolean insertUser(UserBean userBean) throws IOException;
    public boolean updateMoney(String userName, double money) throws IOException;
    public UserBean findByName(String userName) throws IOException;
    public UserBean findUser(String userName, Integer password) throws IOException;
    public void addBank(String userName, MoneyBean moneyBean) throws IOException;
}
